From: Zheng Zhu Date: Mon, 18 Oct 2004 18:13:39 +0000 (+0000) Subject: fixes Bug 718: Bad charset in cached pages. X-Git-Tag: 1.5.0alpha1~1516 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=b15a98c300f67d90dc04b802c92094cec57cbd41;p=lhc%2Fweb%2Fwiklou.git fixes Bug 718: Bad charset in cached pages. --- diff --git a/includes/CacheManager.php b/includes/CacheManager.php index ab6c66d5e4..e611737d5c 100644 --- a/includes/CacheManager.php +++ b/includes/CacheManager.php @@ -92,11 +92,14 @@ class CacheManager { /* Working directory to/from output */ function loadFromFileCache() { - global $wgOut; + global $wgOut, $wgMimeType, $wgOutputEncoding, $wgContLanguageCode; wfDebug(" loadFromFileCache()\n"); $filename=$this->fileCacheName(); $wgOut->sendCacheControl(); + + header( "Content-type: $wgMimeType; charset={$wgOutputEncoding}" ); + header( "Content-language: $wgContLanguageCode" ); if( $this->useGzip() ) { if( wfClientAcceptsGzip() ) {